<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/7/15
  Time: 15:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>添加人员信息</title>
</head>
<body>
<form action="person?type=add" method="post">
    <input type="text" name="personname" placeholder="请输入人员名称"><br>
<%-- 使用下拉框，显示区域信息--%>
    <select name="personareaid">
        <c:forEach items="${areaList}" var="area">
            <option value="${area.areaid}">${area.areaname}</option>
        </c:forEach>
    </select><br>
    <input type="text" name="personage" placeholder="请输入年龄"><br>
    <input type="text" name="personaddress" placeholder="请输入地址"><br>
    <input type="submit" value="添加">
</form>

</body>

</html>
